<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	response.setHeader("X-Frame-Options","SAMEORIGIN");
	/* 参数 */
	String sysType = request.getParameter("type");/* 富文本类型 */
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta content="text/html;charset=utf-8" http-equiv="content-type">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta name="referrer" content="always">
<meta content="#2932e1" name="theme-color">
<title>红黑名单</title>
<jsp:include page="../../public/public.jsp"/>
<script type="text/javascript" src="<%=basePath%>/them/jquery-easyui-1.4.2/ajaxfileupload.js"></script>
<script type="text/javascript">
	var sysType = <%=sysType %>;
</script>
</head>
<body>
	<!-- 菜单按钮、搜索框 -->
		<div id="menu_tb" style="height:auto;display: none;" >
		    <table cellspacing="0" cellpadding="0" style="border-bottom: 1px solid #cccccc"  width="100%">
		        <tr>
		        	<td style="height:50px;padding-left:20px">
		        	 	 	 
		        	 	<span id="queryMsgNameId"></span>自然人或企业名称:<input id="enterpriseNameMsgId" class="easyui-textbox" data-options="width:100"/>
		        	 	失信黑名单项目:
		        	 	<input id="projectNameMsgId" class="easyui-textbox" data-options="width:100"/>
						
						<select id="isDelMsgId" class="easyui-combobox" name="dept"
							data-options="editable:false" style="width:100px;">   
						   		<option value="">全部</option>
								<option value="1">启用</option>
								<option value="2">禁用</option>   
						</select> 
		        	 	<a href="javascript:void(0)" onclick="init()" class="easyui-linkbutton"
		        	 	style="margin-left: 30px;" 
		        	 	 data-options="width:100,height:30,iconCls:'icon-search'">搜&nbsp;&nbsp;&nbsp;&nbsp;索</a>
		            	<a href="javascript:void(0)" onclick="chongzhi()" class="easyui-linkbutton" 
		            	style="margin-left: 10px;" 
		            	data-options="width:100,height:30,iconCls:'icon-remove'">重&nbsp;&nbsp;&nbsp;&nbsp;置</a>
		            </td>
		     </tr>
		     </table>
		     
		    
		</div>	
		<!-- end -->
	<!-- 导入excle弹出窗 -->
	<div id="enterpriseWinId" class="easyui-window"
	  align="center"> 
	  <div id="showId" style=" width:310px;margin-top: 40px;">
	  	 导入excle信息:<input id="file_excle" name="file_excle" type="file"/>
	  </div>
	   <div id="hideId" style="width:310px;margin-top: 40px;display: none;">
	  	 正在导入信息，请耐心等待...
	  </div>		
	</div> 
	
	<!-- 修改弹出窗 -->
	<div id="updatEenterpriseWinId" class="easyui-window"
	  align="center"> 
	  	<form id="addForm" method="post" >
		  		<table align="center" style="margin-top:20px">
		  			<tr style="height: 30px" id="codeId">
		    			<td>部门名称:</td>
		    			<td>
		    			<input id="departmentNameId"  class="easyui-textbox" data-options="width:150,required:true"/>
		    			</td>
		    		</tr>
		    		<tr style="height: 30px" id="codeId">
		    			<td><span id="winNameId">自然人或单位名称 </span>:</td>
		    			<td>
		    			<input id="enterpriseNameId"  class="easyui-textbox" data-options="width:150,required:true"/>
		    			</td>
		    		</tr>
		    		<tr style="height: 30px" id="codeId">
		    			<td> <span id="winCodeId">证件号</span>:</td>
		    			<td>
		    			<input id="organizationCodeId"  class="easyui-textbox" data-options="width:150"/>
		    			</td>
		    		</tr>
		    		<tr style="height: 30px" id="codeId">
		    			<td>失信黑名单项目:</td>
		    			<td>
		    			<input id="projectNameId"  class="easyui-textbox" data-options="width:150"/>
		    			</td>
		    		</tr>
		    		<tr style="height: 30px" id="codeId">
		    			<td>列入黑名单缘由:</td>
		    			<td>
		    			<input id="reasonId"  class="easyui-textbox" data-options="width:150"/>
		    			</td>
		    		</tr>
		    		<tr style="height: 30px">
		    			<td>列入黑名单日期:</td>
		    			<td>
		    			<input id="addDateId" type="text" class="easyui-datebox"
		    				data-options="editable:false"/>  
		    			</td>
		    		</tr>
		    		<tr style="height: 30px">
		    			<td>有效期:</td>
		    			<td>
		    			<input id="validityId" type="text" class="easyui-datebox"
		    				data-options="editable:false"/>  
		    			</td>
		    		</tr>
		    		
		   		</table>
		</form>
	</div>
	<div style="width: 1050px;height: 375px;">
		<!-- 部门列表 -->
		<div style="float: left;width: 210px;height: 375px;">
			<table id="dgDepartment" style="width:200px;height:360px;"></table>
		</div>
		<div style="float: left;height: 385px;text-align: center;line-height:365px;">
			<span style="font-size: 20px;">==></span>
		</div>
	<div style="width:780px;height: 320px;float: left;">
		<table style="height: auto;">       
		     	<tr>
		            <td>
		                <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-mini-refresh" plain="true" 
		                onclick="refresh()">刷新列表</a>
		            </td>
		            <td>
		                <div class="datagrid-btn-separator"></div>
		            </td>
		            <td>
		                <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-mini-add" plain="true" 
		                onclick="enterpriseWin()"><span id="addSpanId">新增黑名单 </span></a>
		            </td>
		            <td>
		                <div class="datagrid-btn-separator"></div>
		            </td>
		            <td>
		            	<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-mini-edit" plain="true" 
		            	onclick="updatEenterpriseWin()"><span id="updateSpanId">修改黑名单</span></a>
		            </td>
		            <td>
		                <div class="datagrid-btn-separator"></div>
		            </td>
		            <td>
		            	<a href="../../excle/black.xlsx" class="easyui-linkbutton" iconcls="icon-down" plain="true" 
		            	><span id="updateSpanId">失信黑名单模板下载</span></a>
		            </td>
		        </tr>
		    </table>
	<!--初始化红黑名单列表  -->
	<table id="dgEnterprise" style="width:780px;height: 320px;"></table> 
	</div>
	</div>
	
	 
 	<script type="text/javascript" src="../../them/js/enterprise.js"></script>
</body>
</html>